package lab_09.task2.com.acme;

public class Account  {

	protected double balance;

	public Account(final double balance) {
		this.balance = balance;
	}

	public double getBalance() {
		return balance;
	}

	public void deposit(final double amount) {
		balance += amount;
	}

	public void withdraw(final double amount) {
		if (balance >= amount) {
			balance -= amount;
		}
	}

}
